const Router = require('koa-router')
const app = new Router({ prefix: "/loves" })
const { isslogin } = require('../middleware/index')
const { getloves, setloves, dleloves, isloves } = require('../controller/loves')
app.get('/getloves', isslogin, getloves)
app.get('/setloves', isslogin, setloves)
app.get('/dleloves', isslogin, dleloves)
app.get('/isloves', isslogin, isloves)
// console.log(this == exports == module.exports)
module.exports = app